package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.product.GrouponStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 团购表实体类<br>
 * 对应的表为：pro_groupon<br>
 * 
 * @author pbuilder generated
 * @date 2019-10-08 14:15:23
 * @company sgy
 * @version 2.0
 */
@TableName("pro_groupon")
@ApiModel(description = "团购表")
public class GrouponEntity {

    /** 主键ID */
	@ApiModelProperty("主键ID")
	protected String id;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 拼团活动信息ID */
	@ApiModelProperty("拼团活动信息ID")
	protected String grouponInfoId;

    /** 拼团skuID */
	@ApiModelProperty("拼团skuID")
	protected String skuId;

    /** 购买时间 */
	@ApiModelProperty("购买时间")
	protected LocalDateTime buyTime;

    /** [枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS */
	@ApiModelProperty("[枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS")
	protected GrouponStatus status;

    /** 参团人数 */
	@ApiModelProperty("参团人数")
	protected Integer joinNum;

    /** 发起人ID */
	@ApiModelProperty("发起人ID")
	protected Long owner;

    /** 发起时间 */
	@ApiModelProperty("发起时间")
	protected LocalDateTime createTime;

    /** 是否过期:0:否 1:是 */
	@ApiModelProperty("是否过期:0:否 1:是")
	protected Boolean isExpire;

    /** 是否单独购买 0否 1是 */
	@ApiModelProperty("是否单独购买 0否 1是")
	protected Boolean isSingleBuy;

	/**
	 * 构造一个空团购表实体对象
	 */
	public GrouponEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个团购表实体对象
	 * 
	 * @param other 其它对象
	 */
	public GrouponEntity(GrouponEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.merchantId = other.merchantId;
     	this.grouponInfoId = other.grouponInfoId;
     	this.skuId = other.skuId;
     	this.buyTime = other.buyTime;
     	this.status = other.status;
     	this.joinNum = other.joinNum;
     	this.owner = other.owner;
     	this.createTime = other.createTime;
     	this.isExpire = other.isExpire;
     	this.isSingleBuy = other.isSingleBuy;
	}


	/**
	 * 获取主键ID
	 * 
	 * @return id 主键ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置主键ID
	 * 
	 * @param id 主键ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取拼团活动信息ID
	 * 
	 * @return grouponInfoId 拼团活动信息ID
	 */
	public String getGrouponInfoId() {
		return grouponInfoId;
	}
  	
	/**
	 * 设置拼团活动信息ID
	 * 
	 * @param grouponInfoId 拼团活动信息ID
	 */
	public void setGrouponInfoId(String grouponInfoId) {
		this.grouponInfoId = grouponInfoId;
	}

	/**
	 * 获取拼团skuID
	 * 
	 * @return skuId 拼团skuID
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置拼团skuID
	 * 
	 * @param skuId 拼团skuID
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取购买时间
	 * 
	 * @return buyTime 购买时间
	 */
	public LocalDateTime getBuyTime() {
		return buyTime;
	}
  	
	/**
	 * 设置购买时间
	 * 
	 * @param buyTime 购买时间
	 */
	public void setBuyTime(LocalDateTime buyTime) {
		this.buyTime = buyTime;
	}

	/**
	 * 获取[枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS
	 * 
	 * @return status [枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS
	 */
	public GrouponStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS
	 * 
	 * @param status [枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS
	 */
	public void setStatus(GrouponStatus status) {
		this.status = status;
	}

	/**
	 * 获取参团人数
	 * 
	 * @return joinNum 参团人数
	 */
	public Integer getJoinNum() {
		return joinNum;
	}
  	
	/**
	 * 设置参团人数
	 * 
	 * @param joinNum 参团人数
	 */
	public void setJoinNum(Integer joinNum) {
		this.joinNum = joinNum;
	}

	/**
	 * 获取发起人ID
	 * 
	 * @return owner 发起人ID
	 */
	public Long getOwner() {
		return owner;
	}
  	
	/**
	 * 设置发起人ID
	 * 
	 * @param owner 发起人ID
	 */
	public void setOwner(Long owner) {
		this.owner = owner;
	}

	/**
	 * 获取发起时间
	 * 
	 * @return createTime 发起时间
	 */
	public LocalDateTime getCreateTime() {
		return createTime;
	}
  	
	/**
	 * 设置发起时间
	 * 
	 * @param createTime 发起时间
	 */
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取是否过期:0:否 1:是
	 * 
	 * @return isExpire 是否过期:0:否 1:是
	 */
	public Boolean getIsExpire() {
		return isExpire;
	}
  	
	/**
	 * 设置是否过期:0:否 1:是
	 * 
	 * @param isExpire 是否过期:0:否 1:是
	 */
	public void setIsExpire(Boolean isExpire) {
		this.isExpire = isExpire;
	}

	/**
	 * 获取是否单独购买 0否 1是
	 * 
	 * @return isSingleBuy 是否单独购买 0否 1是
	 */
	public Boolean getIsSingleBuy() {
		return isSingleBuy;
	}
  	
	/**
	 * 设置是否单独购买 0否 1是
	 * 
	 * @param isSingleBuy 是否单独购买 0否 1是
	 */
	public void setIsSingleBuy(Boolean isSingleBuy) {
		this.isSingleBuy = isSingleBuy;
	}

    public String toString() {
		return new StringBuilder().append("GrouponEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",merchantId=").append(merchantId).
			append(",grouponInfoId=").append(grouponInfoId).
			append(",skuId=").append(skuId).
			append(",buyTime=").append(buyTime).
			append(",status=").append(status).
			append(",joinNum=").append(joinNum).
			append(",owner=").append(owner).
			append(",createTime=").append(createTime).
			append(",isExpire=").append(isExpire).
			append(",isSingleBuy=").append(isSingleBuy).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public GrouponEntity copy() {
		return new GrouponEntity(this);
	}

    /** 主键ID */
	public static final String COL_ID = "id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 拼团活动信息ID */
	public static final String COL_GROUPON_INFO_ID = "groupon_info_id";

    /** 拼团skuID */
	public static final String COL_SKU_ID = "sku_id";

    /** 购买时间 */
	public static final String COL_BUY_TIME = "buy_time";

    /** [枚举]状态：0-未成团-NO_SUCCESS、1-已成团-SUCCESS */
	public static final String COL_STATUS = "status";

    /** 参团人数 */
	public static final String COL_JOIN_NUM = "join_num";

    /** 发起人ID */
	public static final String COL_OWNER = "owner";

    /** 发起时间 */
	public static final String COL_CREATE_TIME = "create_time";

    /** 是否过期:0:否 1:是 */
	public static final String COL_IS_EXPIRE = "is_expire";

    /** 是否单独购买 0否 1是 */
	public static final String COL_IS_SINGLE_BUY = "is_single_buy";
}
